<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%!
	String list(Input input) {
		String part = input.getDesc("part", "");
		Integer sex = input.getInt("sex", 1);
		List<Map<String, Object>> list = (List<Map<String, Object>>)(QBuilder.db("basedb").select("new map(symptomId as symptom_id, symptomName as symptom_name)").from("symptom").where(new Where("sex=", sex).and("part=", part)).query().getResultObj());
		Message msg = new Message(0);
		if (list.size() == 0) {
			msg = new Message(30041, "没有相关信息");
		}
		msg.put("data", list);
		return msg.toJson();
	}
%>
<%
	Tools.encryptPrint(out, list(input));
%>
